Skip to content

Enable intrinsic function for configs#640

Closed
eacet wants to merge 14 commits into
sid88in:masterfrom
Collaborne:master
Closed

Enable intrinsic function for configs#640
eacet wants to merge 14 commits into
sid88in:masterfrom
Collaborne:master

Conversation

@eacet
Copy link
Copy Markdown

@eacet eacet commented Sep 10, 2024

This PR enables intrinsic function usage for xrayEnabled, wafEnabled and openIdConnectConfig.issuer fields.

Fixes: #638

eacet and others added 14 commits September 3, 2024 11:20
This commit allows to use intrinsic function for waf and xray
This proved to be the wrong approach: Resolvers are supposed to return only data - not change the response.

This becomes problematic if a response triggers many resolvers (e.g. a search request), which would return lots of headers.
@sid88in
Copy link
Copy Markdown
Owner

sid88in commented May 31, 2026

Thanks for this, @ronnyroeller — and apologies it sat for so long. 🙏

The codebase has moved on quite a bit since this was opened (the v2 rewrite and the recent AWS SDK v3 migration), so rather than ask you to resolve the conflicts, I've rebased your change onto current master in #713 and credited you as co-author. It keeps your core idea — a booleanOrIntrinsicFunction schema definition alongside the existing stringOrIntrinsicFunction — and applies it to the fields that still exist and pass straight through to CloudFormation: openIdConnectConfig.issuer, xrayEnabled, and logging.excludeVerboseContent.

One adjustment worth noting: wafEnabled from the original no longer exists (it's now waf.enabled), and I deliberately left it — along with logging.enabled, caching.enabled, and domain.enabled — as a plain boolean. Those are synth-time toggles that decide in JS whether the resource is generated at all, so a deploy-time intrinsic can't drive them.
I'll close this in favor of #NNN once that merges. Thanks again for the original fix and for flagging the limitation in #638!

@sid88in sid88in closed this May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v2 upgrade] Can't use any longer intrinsic functions for config fields like openIdConnectConfig

3 participants